package com.open.capacity.answer.service;

import com.open.capacity.common.model.Answer;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;

import java.util.Map;

public interface AnswerService {
    /**
     * 模糊查询疑问
     * @param params
     * @return
     */
    PageResult<Answer> getSelectAnswers(Map<String, Object> params);

    /**
     * 发布疑问
     * @param answer
     * @return
     */
    Result addAnswer(Answer answer);

    /**
     * 修改疑问
     * @param answer
     * @return
     */
    Result updateAnswer(Answer answer);

    /**
     * 删除疑问
     * @param id
     * @return
     */
    Result delAnswer(int id);
}
